<?php
require_once(ML_UTILITIES."/util.php");
require_once(ML_UTILITIES."/log.php");
require_once(ML_UTILITIES."/debug.php");
require_once(ML_UTILITIES."/db_connector.php");
require_once(ML_ROOT."/protocol.php");

function url($destination)
{
	if (!defined("ML_CLEAN_URI") or ML_CLEAN_URI === FALSE)
		return ML_SITE_URL.$destination;
}

function media($filepath)
{
	return ML_SITE_URL."$filepath";
}

function set_navigation($on_page)
{
	global $g_navigation;
	$g_navigation = $on_page;
}

function is_navigation($on_page)
{
	global $g_navigation;
	if (isset($g_navigation) and $g_navigation == $on_page) return TRUE;
	else return FALSE;
}

function set_view_data($key, $value)
{
	global $view_data;
	$view_data[$key] = $value;
}
